package com.example.demo.controller;import com.example.demo.model.Person;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import java.util.ArrayList;/** * @Author Sunjinxu * @Date: 2022/3/31 下午5:03 * @Version 1.0 * @Description TODO */@Controllerpublic class ThyLeafController {    @GetMapping("/list")    public String getList(Model model){        ArrayList<Person> list = new ArrayList<>();        list.add(new Person(1,"张玲","女",18));        list.add(new Person(2,"孙金旭","男",18));        list.add(new Person(3,"孙圆圆","女",18));        model.addAttribute("list",list);        return "hello";    }}